SubscriptionHolder
Subscription holder.
Erbt von: Disposable
Konstruktoren
Eigenschaften
MaxTrackedItems : int
Maximum number of tracked helper entries.
Methoden
AddUnsubscribeRequest(long, long)
Add unsubscribe request identifier.
- transactionId
- Request identifier.
- originalTransactionId
- ID of the original message TransactionId for which this message is a response.
Clear()
Clear state.
DisposeManaged()
Release resources.
GetSubscriptions(T) : IEnumerable<T>
Get subscriptions for the specified session.
- session
- Session.
Rückgabe: Subscriptions.
GetSubscriptions(Message) : IEnumerable<T>
Get subscription for the specified message.
- message
- Message.
Rückgabe: Subscriptions.
HasSubscriptions(DataType, SecurityId) : bool
Determines whether any subscription exists for the specified data type and security.
- dataType
- Data type info.
- securityId
- Security ID.
Rückgabe: if any subscription exists; otherwise, .
Remove(T)
Remove all subscriptions for the specified session.
- session
- Session.
Rückgabe: Subscriptions.
TryGetById(long, T) : bool
Try to get a subscription by the specified identifier.
- id
- Identifier.
- info
- The found subscription, if any.
Rückgabe: if a subscription with the specified identifier exists; otherwise, .
TryGetSubscription(long, SubscriptionStates?, T) : bool
Try to get the subscription by the specified identifier and switch to a new state if specified.
- id
- Identifier.
- state
- The state to set for the subscription, or to leave unchanged.
- info
- The found subscription, if any.
Rückgabe: if the subscription was found; otherwise, .
TryGetSubscriptionAndStop(long, T) : bool
Try to get the subscription by the specified identifier and set its state to Stopped.
- id
- Identifier.
- info
- The found subscription, if any.
Rückgabe: if the subscription was found; otherwise, .
Ereignisse
SubscriptionChanged : Action<T>
Subscription changed event.